﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Caviar.SharedKernel.Entities.IM
{
    public class Friend : SysUseEntity
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 好友
        /// </summary>
        public User Another { get; set; }

        /// <summary>
        /// 好友Id
        /// </summary>
        public int AnotherId { get; set; }

        /// <summary>
        /// Token（同一个Token代表是好友关系）
        /// </summary>
        public string Token { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }

        /// <summary>
        /// 主动邀请
        /// </summary>
        public bool IsUnasked { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public FriendStatusType StatusType { get; set; }

        /// <summary>
        /// 添加好友时间
        /// </summary>
        public DateTime AddFriendTime { get; set; }

        /// <summary>
        /// 联系好友主题
        /// </summary>
        public ICollection<UserTopic> ContactTopics { get; set; } = new List<UserTopic>();
    }
}
